package com.gateway.service;

import com.gateway.service.fallback.UserServiceGateWayFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@Component
@FeignClient(value = "service-user", path = "/api/user", fallback = UserServiceGateWayFeignClientFallback.class)
public interface UserServiceGateWayFeignClient {

    @GetMapping("/info/{token}")
    String info(@PathVariable("token") String token) ;
}
